﻿using System;
using System.ComponentModel.DataAnnotations;
namespace Manager.Model.Admin
{
    /// <summary>
    /// M_Site:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class M_Site
    {
        public M_Site()
        { }
        #region Model
        private int _siteid;
        private string _sitename;
        private string _sitedomain;
        private string _sitekeywords;
        private string _sitedesc;
        private bool _watermark = false;
        private bool _watermarktype = true;
        private string _watermarkname = "水母网 shm.com.cn";
        private string _watermarkurl = "/Content/logo.png";
        private int? _watermarkposition = 3;
        private int? _watermarkalpha = 70;
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="编号")]
        public int SiteID
        {
            set { _siteid = value; }
            get { return _siteid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="站点名称")]
        [StringLength(50)]
        [Required]
        public string SiteName
        {
            set { _sitename = value; }
            get { return _sitename; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="站点域名")]
        [StringLength(100)]
        public string Sitedomain
        {
            set { _sitedomain = value; }
            get { return _sitedomain; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "站点关键字")]
        [StringLength(100)]
        public string SiteKeywords
        {
            set { _sitekeywords = value; }
            get { return _sitekeywords; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "站点描述")]
        [StringLength(250)]
        public string SiteDesc
        {
            set { _sitedesc = value; }
            get { return _sitedesc; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="开启水印")]
        public bool WaterMark
        {
            set { _watermark = value; }
            get { return _watermark; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name="水印类型")]
        public bool WaterMarkType
        {
            set { _watermarktype = value; }
            get { return _watermarktype; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "水印文字")]
        public string WaterMarkName
        {
            set { _watermarkname = value; }
            get { return _watermarkname; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "水印地址")]
        public string WaterMarkUrl
        {
            set { _watermarkurl = value; }
            get { return _watermarkurl; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "水印位置")]
        public int? WaterMarkPosition
        {
            set { _watermarkposition = value; }
            get { return _watermarkposition; }
        }
        /// <summary>
        /// 
        /// </summary>
        [Display(Name = "水印透明度")]
        [Range(0, int.MaxValue)]
        public int? WaterMarkAlpha
        {
            set { _watermarkalpha = value; }
            get { return _watermarkalpha; }
        }
        #endregion Model

    }
}

